//
//  LLCentVC.m
//  LoveLove
//
//  Created by 吴志强 on 2019/7/3.
//  Copyright © 2019 wkf. All rights reserved.
//

#import "LLCentVC.h"
#import "LLLoginViewController.h"

@interface LLCentVC ()

@end

@implementation LLCentVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void) viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    if (![LLUserInfo sharedUser].user_id || [LLUserInfo sharedUser].user_id.length == 0) {

        LLNavViewController *vc = [[LLNavViewController alloc]initWithRootViewController:LLLoginViewController.new];
        [UIApplication sharedApplication].keyWindow.rootViewController = vc;
    }
}

/**
 请求网络

 @param url 要加载的url字符串
 */
-(void)loadRequestURLString:(NSString *)url;
{
    if ([LLUserInfo sharedUser].user_id) {

        [super loadRequestURLString:url];
    }
}

@end
